Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

633423 Views

Latest files of /cody/swapnilsparsh/30DaysOfJavaScript/113 - Particle Effect Animation

style.css cody/swapnilsparsh/30DaysOfJavaScript/113 - Particle Effect Animation/style.css
103 Views
0 Comments
* {
padding: 0%;
margin: 0%;
box-sizing: border-box;
}

#canva {
position: absolute;
index.html cody/swapnilsparsh/30DaysOfJavaScript/113 - Particle Effect Animation/index.html
295 Views
0 Comments
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Particle effect animation</title>
<link rel="stylesheet" href="style.css">
script.js cody/swapnilsparsh/30DaysOfJavaScript/113 - Particle Effect Animation/script.js
107 Views
0 Comments
const canvas = document.getElementById("canva");
const ctx = canvas.getContext('2d');
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;

//particle array to store randomised particle
let particleArray;
//get mouse cursor postion